package com.moji.cyg.biz.area;

import java.util.List;

/**
 * 区域编码实现
 * 
 * @author paul.gaol
 * @date 2012-3-5
 */
public class AreaServiceImpl implements AreaService {

    private AreaDAO areaDAO;

    /*
     * (non-Javadoc)
     * @see com.moji.cyg.biz.area.AreaService#getAreaByCode(java.lang.String)
     */
    @Override
    public AreaModel getAreaByCode(String code) {
        return areaDAO.getAreaByCode(code);
    }

    /*
     * (non-Javadoc)
     * @see com.moji.cyg.biz.area.AreaService#listAreasByCode(java.lang.String)
     */
    @Override
    public List<AreaModel> listAreasByCode(String code) {
        return areaDAO.listAreasByCode(code);
    }

    public AreaDAO getAreaDAO() {
        return areaDAO;
    }

    public void setAreaDAO(AreaDAO areaDAO) {
        this.areaDAO = areaDAO;
    }

}
